﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Collections.Generic;
namespace XSTDZ.ERP.Application.DataContracts
{
    [Serializable]
    public class StorehouseDto
    {
        public Guid Id { get; set; }
        [Display(Name = "仓库名称")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string StorehouseName { get; set; }
        [Display(Name = "仓库编码")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string StorehouseCode { get; set; }
        [Display(Name = "删除状态")]
        public int Deleted { get; set; }
        [Display(Name = "备注")]
        public string Remarks { get; set; }

        [Display(Name = "仓库类别")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public Guid StorehouseType { get; set; }//这个来自于码表
        public string StorehouseTypeName { get; set; }//这个来自于码表

        public System.Guid OrgID { get; set; }
        [Display(Name = "组织机构名称")]
        [Required(ErrorMessage = "{0}不能为空！")]
        public string OrgName { get; set; }

        public int IsDefultStoehouuse { get; set; }//是否默认仓库

        public string DeletedSate { get; set; }//只是为了方便页面读取
    }
}
